<template>
  <div>
    <LayoutPanel class="private-common-wrapper">
      <div slot="title" class="title">
        <span>{{ $t('twilio.title') }}</span>
        <a class="link-btn" @click="onClickToHowTwilio">
          <icon-font type="ic-manual" />
          {{ $t('twilio.howto') }}
        </a>
      </div>
      <TwillioSetting :isFunc="true"></TwillioSetting>
    </LayoutPanel>
  </div>
</template>
<script>
import LayoutPanel from '@views/common/deviceDetail/components/components/layoutPanel.vue';
import TwillioSetting from '@views/system/usercenter/components/TwillioSetting.vue';

export default {
  name: 'twilioSms',
  props: {},
  components: {
    LayoutPanel,
    TwillioSetting,
  },
  data() {
    return {};
  },

  mounted() {},
  created() {},
  methods: {
    onClickToHowTwilio() {
      window.open(
        `https://cloud.ruijienetworks.com/help/#/ArticleList?id=47a9ee62d14747b2b86eeeb43f2a9e5d`,
        '_blank'
      );
    },
  },
  watch: {},
  computed: {},
};
</script>
<style lang="less" scoped>
.private-common-wrapper {
  padding: 16px;
  height: 100%;
  overflow-y: auto;
  .title {
    display: flex;
    justify-content: space-between;
  }
  .link-btn {
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    i {
      font-size: 16px;
    }
  }
}
</style>
